import request from '@/utils/request'

// 查询发起与决策列表
export function listDecide(query) {
  return request({
    url: '/decision/decide/list',
    method: 'get',
    params: query
  })
}

// 查询发起与决策详细
export function getDecide(id) {
  return request({
    url: '/decision/decide/' + id,
    method: 'get'
  })
}

// 新增发起与决策
export function addDecide(data) {
  return request({
    url: '/decision/decide',
    method: 'post',
    data: data
  })
}

// 修改发起与决策
export function updateDecide(data) {
  return request({
    url: '/decision/decide',
    method: 'put',
    data: data
  })
}

// 删除发起与决策
export function delDecide(id) {
  return request({
    url: '/decision/decide/' + id,
    method: 'delete'
  })
}

// 导出发起与决策
export function exportDecide(query) {
  return request({
    url: '/decision/decide/export',
    method: 'get',
    params: query
  })
}